package com.management.service;

import com.management.controller.form.AddSeverityForm;
import com.management.controller.form.ChangeSeverityFrom;
import com.management.controller.form.GetALLSeverityFrom;
import com.management.controller.form.GetSeverityByNameForm;
import com.management.model.DefectSeverity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.management.utils.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 龙世超
 * @since 2022-03-23
 */
public interface DefectSeverityService extends IService<DefectSeverity> {

    Result findAllSeverity(GetALLSeverityFrom getALLSeverityFrom);

    Result addSeverity(AddSeverityForm addSeverityForm);

    Result changeSeverityState(Integer severityId);

    Result checkSeverity(Integer severityId);

    Result changeSeverity(ChangeSeverityFrom changeSeverityFrom);

    Result delSeverity(Integer severityId);

    Result selByName(GetSeverityByNameForm getSeverityByNameForm);

    Result getAllSeveritys();
}
